package com.jiazhong.mingxing.boot.boot01.component;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@NoArgsConstructor
@Component
public class Student2 {

    @Value("${student.id}")
    private Integer id;
    @Value("${student.phone.name}")
    private String phoneName;
    @Value("${student.name}")
    private String studentName;
   // @Value("${student.loves}")
    private String[] loves;
}
